package com.app.internationaltravel.service.impl;

import com.app.internationaltravel.dao.UserGoldDao;
import com.app.internationaltravel.entity.UserGold;
import com.app.internationaltravel.service.intf.UserGoldService;
import com.app.internationaltravel.vo.R;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 刘豆豆
 * @date 2022/12/14
 */
@Service
public class UserGoldServiceImpl implements UserGoldService {

  @Resource
  private UserGoldDao dao;

  @Override
  public R queryGold(int uid) {
    return R.ok(dao.selectList(new QueryWrapper<UserGold>().eq("uid",uid)));
  }
}
